package com.jinhua.medical.manager.mybatis.dto;

import java.util.List;

/**
 * 区域信息实体（封装区域信息）
 * Created by 王兴光 on 2018/6/27.
 */
public class AreaInfo {
    private Integer codeid;

    private Integer parentid;

    private String title;

    private String type;                  // 一级分类folder，二级分类item

    private List<AreaInfo> products;      // 二级分类城市列表

    public AreaInfo() {
    }
    public AreaInfo(Integer codeid, Integer parentid, String title) {
        this.codeid = codeid;
        this.parentid = parentid;
        this.title = title;
        this.type = "item";
    }
    public AreaInfo(Integer codeid, Integer parentid, String title, List<AreaInfo> products) {
        this.codeid = codeid;
        this.parentid = parentid;
        this.title = title;
        this.type = "folder";
        this.products = products;
    }

    public Integer getCodeid() {
        return codeid;
    }

    public void setCodeid(Integer codeid) {
        this.codeid = codeid;
    }

    public Integer getParentid() {
        return parentid;
    }

    public void setParentid(Integer parentid) {
        this.parentid = parentid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<AreaInfo> getProducts() {
        return products;
    }

    public void setProducts(List<AreaInfo> products) {
        this.products = products;
    }
}
